package day1117_3;

import javax.swing.*;
import java.awt.*;

public class B2 {
    public static void main(String[] args) {
        JFrame  w=new JFrame();//窗口JFrame
        JPanel  p=new JPanel();//面板(黑板)

        FlowLayout  fLay=new FlowLayout();//FlowLayout
        p.setLayout(fLay);

        p.add(new JButton("按钮1"));
        p.add(new JButton("按钮2"));

        w.add(p);
        w.setSize(900,600);
        w.setVisible(true);
    }
}
